package com.zspringboot.demo.exception;

/**
 * 自定义异常
 * @program: springboot2
 * @description:
 * @author: LaoLang
 * @create: 2024-02-19 12:23
 * @version:1.0
 **/
public class ServiceException extends RuntimeException {
    private String code;

    public ServiceException(String code, String message) {
        super(message);
        this.code = code;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
